Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  A subset S of set of numbers {2,3,4,5,6,7,8,9... Start Learning for Free
A subset S of set of numbers {2,3,4,5,6,7,8,9,10} is said to be good if has exactly 4 elements and their gcd=1, Then number of good subset is
  • a)
    126  
  • b)
    125  
  • c)
    123  
  • d)
    121
Correct answer is option 'D'. Can you explain this answer?
Verified Answer
A subset S of set of numbers {2,3,4,5,6,7,8,9,10} is said to be good i...
Total number of sub sets which will contain exactly 4 elements = 9C4= 126

Now eliminate all the sets of 4 elements which can cause GCD other than 1 ,here by observing only GCD of 2 can exist other than 1 with 4 elements and those 4 elements can be from {2,4,6,8,10}.

Thus with these 5 elements  5c4 = 5 sub sets are possible which have gcd other than 1.

So, good subsets = 126 - 5 = 121.
View all questions of this test
Most Upvoted Answer
A subset S of set of numbers {2,3,4,5,6,7,8,9,10} is said to be good i...
Problem: Find the number of good subsets of the set {2,3,4,5,6,7,8,9,10}, where a good subset is a subset with exactly 4 elements and their gcd is 1.

Solution:

To find the number of good subsets, we need to first find the number of ways we can choose 4 elements from the given set. This can be done using the combination formula:

nCr = n! / (r! * (n-r)!)

where n is the total number of elements in the set and r is the number of elements we want to choose.

Substituting the values, we get:

9C4 = 9! / (4! * 5!) = 126

So, there are 126 ways to choose 4 elements from the given set.

Now we need to count the number of subsets with gcd 1. To do this, we can use the principle of inclusion-exclusion.

Let A be the set of all subsets with gcd divisible by 2, B be the set of all subsets with gcd divisible by 3, C be the set of all subsets with gcd divisible by 5, and D be the set of all subsets with gcd divisible by 7.

Then, the number of good subsets is given by:

|U| - |A ∪ B ∪ C ∪ D|

where |U| is the total number of subsets and |A ∪ B ∪ C ∪ D| is the number of subsets that have gcd divisible by at least one of 2, 3, 5, 7.

We can find |U| using the formula 2^n, where n is the total number of elements in the set. Substituting, we get:

|U| = 2^9 = 512

To find |A ∪ B ∪ C ∪ D|, we need to find the number of subsets with gcd divisible by 2, 3, 5, and 7 separately, and then subtract the subsets with gcd divisible by the intersection of any two, three, or all four of these.

For example, to find the number of subsets with gcd divisible by 2, we can count the number of subsets that contain only even numbers (2, 4, 6, 8, 10) and subtract the subsets that have gcd divisible by 4 (i.e. subsets that contain 4).

Similarly, to find the number of subsets with gcd divisible by 3, we can count the number of subsets that contain only multiples of 3 (3, 6, 9) and subtract the subsets that have gcd divisible by 9 (i.e. subsets that contain 9).

Using this method, we can find the number of subsets with gcd divisible by 5 and 7 as well.

Finally, we need to subtract the subsets with gcd divisible by the intersection of any two, three, or all four of these. For example, to find the number of subsets with gcd divisible by both 2 and 3, we can count the number of subsets that contain only multiples of 6 (6) and subtract the subsets that have gcd divisible by 6 (i.e. subsets that contain both 2 and 3).

Using this method, we can find the number of subsets with gcd divisible by any two
Explore Courses for Computer Science Engineering (CSE) exam

Similar Computer Science Engineering (CSE) Doubts

Top Courses for Computer Science Engineering (CSE)

A subset S of set of numbers {2,3,4,5,6,7,8,9,10} is said to be good if has exactly 4 elements and their gcd=1, Then number of good subset isa)126 b)125 c)123 d)121Correct answer is option 'D'. Can you explain this answer?
Question Description
A subset S of set of numbers {2,3,4,5,6,7,8,9,10} is said to be good if has exactly 4 elements and their gcd=1, Then number of good subset isa)126 b)125 c)123 d)121Correct answer is option 'D'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about A subset S of set of numbers {2,3,4,5,6,7,8,9,10} is said to be good if has exactly 4 elements and their gcd=1, Then number of good subset isa)126 b)125 c)123 d)121Correct answer is option 'D'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for A subset S of set of numbers {2,3,4,5,6,7,8,9,10} is said to be good if has exactly 4 elements and their gcd=1, Then number of good subset isa)126 b)125 c)123 d)121Correct answer is option 'D'. Can you explain this answer?.
Solutions for A subset S of set of numbers {2,3,4,5,6,7,8,9,10} is said to be good if has exactly 4 elements and their gcd=1, Then number of good subset isa)126 b)125 c)123 d)121Correct answer is option 'D'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of A subset S of set of numbers {2,3,4,5,6,7,8,9,10} is said to be good if has exactly 4 elements and their gcd=1, Then number of good subset isa)126 b)125 c)123 d)121Correct answer is option 'D'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of A subset S of set of numbers {2,3,4,5,6,7,8,9,10} is said to be good if has exactly 4 elements and their gcd=1, Then number of good subset isa)126 b)125 c)123 d)121Correct answer is option 'D'. Can you explain this answer?, a detailed solution for A subset S of set of numbers {2,3,4,5,6,7,8,9,10} is said to be good if has exactly 4 elements and their gcd=1, Then number of good subset isa)126 b)125 c)123 d)121Correct answer is option 'D'. Can you explain this answer? has been provided alongside types of A subset S of set of numbers {2,3,4,5,6,7,8,9,10} is said to be good if has exactly 4 elements and their gcd=1, Then number of good subset isa)126 b)125 c)123 d)121Correct answer is option 'D'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice A subset S of set of numbers {2,3,4,5,6,7,8,9,10} is said to be good if has exactly 4 elements and their gcd=1, Then number of good subset isa)126 b)125 c)123 d)121Correct answer is option 'D'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev